/**
* Moving a File to Another Directory
* @param srcFile eg: c:\windows\abc.txt
* @param destPath eg: c:\temp
* @return success
*/
import java.io.File;

public class CopyFile {
		public static boolean move(String srcFile, String destPath){
		// File (or directory) to be moved
		File file = new File(srcFile);

		// Destination directory
		File dir = new File(destPath);

		// Move file to new directory
		boolean success = file.renameTo(new File(dir, file.getName()));

		return success;
	} 

	public static void main(String[] args) {
		move("E:\\BackUp\\java\\back\\log.dat","E:\\BackUp\\JavaCode");
	}


}